<%-- 
    Document   : NewProduct
    Created on : Nov 2, 2011, 12:01:31 AM
    Author     : MrKoi
--%>

<%@page import="DAL.CarBean"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page session="true" import="java.util.Collection" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>
<%@ taglib uri="/WEB-INF/taglib139.tld" prefix="pg" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <style type="text/css">
            .aa
            {
            color:#0707e7;
            width:100%;
            }
            
            img{border:none;}
        ul#ulzoon1{
                margin:0;
                padding:0;
        }
        li#lizoon1{
                margin:0;
                padding:0;
                list-style:none;
                display:inline;    
        }
        #preview1{
                position:absolute;
                border:1px solid #ccc;
                background:#333;
                padding:0px;
                display:none;
                color:#fff;
                }
        </style>
    </head>
    <body>
    <%
       CarBean car=new CarBean();
       Collection coll=car.SelectTop10();
       request.setAttribute("cartop10",coll);
    %>
        <div class="khunnew">
            <marquee height="300" align="center" width="250px" direction=up scrolldelay="5" scrollamount="2" onmouseover="this.stop()" onmouseout="this.start()">
                <table border="0">
                    <c:forEach items="${cartop10}" var="cc" >
                        <tr>
                            <td>
                                <ul>
                                <li><a href="index.jsp?page=DetailCar&id=${cc.carID}"><img src="${cc.image}" width="200px" height="250px" /></a></li>
                                </ul>
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                                <a class="aa" href="index.jsp?page=DetailCar&id=${cc.carID}">${cc.carName}</a>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                        </tr>
                    </c:forEach>
                </table>
            </marquee> 
        </div>
        
    </body>
</html>
